#define  _CRT_SECURE_NO_WARNINGS



#include<stdio.h>
#include<string.h>


int main()
{
    char arr[201] = { 0 };
    while (gets(arr) != NULL)
    {
        int len = strlen(arr), i = 0, flag = 1, x = 0, count = 0, j = 0, temp = 0;
        for (i = 0; i < len; i++)
        {
            if (arr[i] == '@')
            {
                x = i;
                flag = 0;
            }
        }
        if (flag == 1)
        {
            for (i = 0; i < len; i++)
            {
                if (arr[i] == '#')
                {
                    count = 0;
                    for (j = i; 1; j++)
                    {
                        if (arr[j] != '#')
                            break;
                        else
                            count++;
                    }
                    temp = count * 2;
                    while (temp--)
                    {
                        for (j = i - count; j < len; j++)
                        {
                            arr[j] = arr[j + 1];
                        }
                    }
                }
            }
            puts(arr);
        }
        else
        {
            for (i = x + 1; i < len; i++)
            {
                if (arr[i + 1] != '#' && arr[i] != '#')
                    printf("%c", arr[i]);
            }
            printf("\n");
        }
    }

    return 0;
}